package com.crdeng.business.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crdeng.business.entity.Supplier;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crdeng.business.vo.SupplierQueryMap;
import com.crdeng.business.vo.SupplierVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author crdeng
 * @since 2021-01-07
 */
public interface SupplierService extends IService<Supplier> {

    /**
     * 添加供应商
     * @param supplierVO
     * @return
     */
    Supplier add(SupplierVO supplierVO);

    IPage<Supplier> findSupplier(Integer pageNun, Integer pageSize, SupplierQueryMap queryMap);

    /**
     * 删除
     * @param id
     */
    void deleteSupplierById(Long id);

    /**
     * 编辑
     * @param supplierVO
     */
    void editSupplierById(SupplierVO supplierVO);
}
